package br.com.psu.protocom.message.header;

import java.util.HashMap;
import java.util.Map;

public class ServiceHeaderRequest extends ServiceMessageHeader {

	private Map<String, String> contextInfo = new HashMap<String, String>();

	public ServiceHeaderRequest() {

	}

	public ServiceHeaderRequest(Map<String, String> contextInfo) {
		super();
		this.contextInfo = contextInfo;
	}

	public Map<String, String> getContextInfo() {
		return contextInfo;
	}

	public void setContextInfo(Map<String, String> contextInfo) {
		this.contextInfo = contextInfo;
	}

	public void addInfo(String name, String value) {

		contextInfo.put(name, value);

	}

	public String getValue(String key) {
		return contextInfo.get(key);
	}

}